package com.gupao.jly521;

/**
 * @author Jly
 * @date 2018/8/27  15:23
 */
public class TemplateMethordTest {

    public static void main(String[] args) {
        GoToWorkTemplate bean = new GoToWorkTemplate(new IGoToWorkWay() {
            @Override
            public void gotoWorkByDifferentWay() {
                System.out.println("我走路去上班！！！");
            }
        });
        bean.gotoWork();
    }
}
